CC=g++
FLAGS=-std=c++11
LD=-lpthread
bin=pthread.cc
src=pthread
bin1=vfork.cc
src1=vfork

.PHONY:all
#all: vfork pthread
all: $(src) $(src1)

$(src):$(bin) 
	$(CC) -o $@ $^ $(FLAGS) $(LD)
$(src1):$(bin1)
	$(CC) -o $@ $^ $(FLAGS) $(LD)
.PHONY:clean
clean:
	rm -f $(src) $(src1)
